<template name="App_home">
<div class="ui center container">
	<div class="ui segments">
		<div class="ui centered segment">
			<div class="ui items">
				<div class="item">
			    <div class="ui tiny image">
			      <img src="/img/didilogo.jpg">
			    </div>
			    <div class="middle aligned content">
			      <a class="header">车主俱乐部在线</a>
			    </div>
			  </div>
			</div>
		</div>
		<div class="ui centered segment">
			<div class="ui stackable centered grid">
			  <div class="ui six wide column" style="padding:20px;">
			  	<h3>{{welcome_message}}</h3>
			  	<div class="ui divider"></div>
					{{#if is_logined}}
					<div class="ui buttons">
						<button class="ui button app-logout">退出</button>
						<div class="or"></div>
						<a href="/admin" class="ui positive button">进入管理中心</a>
					</div>
					{{else}}
						{{> App_login }}
					{{/if}}

			  </div>
			  <div class="ui ten wide column">
			  <h4>最新动态</h4>
			  <div>

			  	{{> post_items }}
			  </div>
			  </div>

			</div>
		</div>
		<div class="ui centered segment">
			<h2 class="ui center aligned icon header">
			  <i class="circular users icon"></i>
			  我们的门店
				<div class="ui divider">

				</div>
			</h2>

			<div class="ui one column doubling centered grid" style="text-align:center;">
				{{> shop_cards }}
			</div>

		</div>
	</div>
</div>

</template>
